<?php

/**
 * IndexController - The default controller class
 * 
 * @author
 * @version 
 */

require_once 'Zend/Controller/Action.php';

class IndexController extends Zend_Controller_Action
{
	function indexAction(){
		//class Categoria Produto
		$tbCategoria = new CategoriaProd();
		$cat_json = $tbCategoria->getAllCategorias();
		$cat_json = Zend_Json::encode($cat_json);
		$cat_json = str_replace(',"subc":null',"",$cat_json);
		$this->view->cat_json = $cat_json;
	}

	function addAction(){
		echo "<p>em IndexController::addAction()</p>";
	}

	function editAction(){
		echo "<p>em IndexController::editAction()</p>";
	}

	function deleteAction(){
		echo "<p>em IndexController::deleteAction()</p>";
	}
}